package com.wtwd.campus.h5_manager.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wtwd.campus.h5_manager.entity.H5ManageRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wtwd.campus.h5_manager.entity.vo.H5RolePermissionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mjy
 * @since 2022-03-04
 */
@Mapper
public interface H5ManageRoleMapper extends BaseMapper<H5ManageRole> {

    Integer deleteByIdList(@Param("list") List<Integer> roleIdList);

    IPage<H5ManageRole> queryRoleByCustomerIdPage(@Param("customerId") Integer customerId,@Param("page") Page<H5ManageRole> page);

    List<H5RolePermissionVo> getRolePermission(@Param("userRoleId") Integer userRoleId,@Param("authRoleId") Long authRoleId);
}
